package org.wlgzs.office_exam_student.view.freemarker;

import java.io.Writer;
import java.util.Map;

import org.wlgzs.office_exam_student.view.View;

import freemarker.template.Template;

public class FMView implements View{

	private Template tem = null;
	
	public FMView(Template tem) {
		this.tem = tem;
	}
	
	@Override
	public void render(Map<String, Object> data, Writer out) throws Exception {
		tem.process(data, out);
	}

}
